package com.xbongbong.workflow.pojo.nodes;

import com.xbongbong.paas.domain.entity.ext.FieldPermissionEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author chenpeng
 * @version 1.0
 * @date 2021-05-10 15:39
 * @description 发送消息节点
 */
@Getter
@Setter
@ToString
public class SendMsgNode implements Serializable {

    private static final long serialVersionUID = -2841839417481012863L;
    /**
     * 通知人
     */
    @Valid
    @NotEmpty(message = "{pojo.msg.SendMsgNode.messageRecipient.NotEmpty}")
    private List<WorkflowOptionalRangePojo> messageRecipient;
    /**
     * 消息内容
     */
    @Valid
    @NotEmpty(message = "{pojo.msg.SendMsgNode.messageContent.NotEmpty}")
    private List<WorkflowTitlePojo> messageContent;

    /**
     * 标题
     */
    @Valid
    @NotEmpty(message = "{pojo.msg.SendMsgNode.title.NotEmpty}")
    private List<WorkflowTitlePojo> title;

    /**
     * 允许穿透查看数据详情 1：允许；0：不允许
     */
    @NotNull(message = "{pojo.msg.SendMsgNode.viewDetail.NotNull}")
    private Integer viewDetail;

    /**
     * 字段是否是触发节点字段的标识，0:不是；1:是
     *
     */
    private Integer triggerNodeFlag;

    /**
     * 穿透的节点id
     */
    private Long workflowNodeId;
    /**
     * 字段权限
     */
    private Map<String, FieldPermissionEntityExt> fieldPermission;
    


    
}
